package app.service.impl;

import app.dao.DaoQQUser;
import app.entity.QQUser;
import app.service.ServiceQQUser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;

@Service
@Transactional
public class ServiceQQUserImpl implements ServiceQQUser {

    @Resource
    private DaoQQUser userMapper;

    @Override
    public QQUser getOpenid(String openid) {
        return userMapper.getOpenid(openid);
    }
    @Override
    public int insert(QQUser userEntity) {
        return userMapper.insertQQ(userEntity);
    }
    @Override
    public int update(QQUser userEntity) {
        return userMapper.updateQQ(userEntity);
    }

    /*public int register(String openid, String phone, String email) {
        return userMapper.register(openid, phone, email);
    }*/
}
